<!--借款人信息  -->
<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td width="15%" align="right" class="bg">借款人姓名:</td>
						<td width="35%">${loanUser.userFullName}</td>
						
						<td width="15%" align="right" class="bg">证件类型:</td>
						<td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp"
							value="${loanUser.documentType}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">借款人姓拼音:</td>
						<td>${loanUser.surnamePinyin}</td>
						<td align="right" class="bg" width="18%">借款人名拼音:</td>
						<td>${loanUser.namePinyin}</td>
					</tr>
					<tr>
					   
						<td align="right" class="bg">证件号码:</td>
						<td colspan="3">
							<input id="document_no" type="hidden" value="${loanUser.documentNo}">
							<#if type=="detail" || approvalStatus=='UNDO'>
								${loanUser.documentNo}
							<#else>
								${loanUser_sensitive.documentNo}
							<@permission permissionName="loanUserLookInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_window?id=${loanUser.id}">查看</a>
							</@permission>
							</#if>
					</td>
					</tr>
					
					<tr>
						<td align="right" class="bg" width="18%">历史放款信息:</td>
						<td>
							<#if numberOfLoans?? && numberOfLoans gt 0>
								共&nbsp;<a target="_blank" href="/afterloan/index?idc=${loanUser.documentNo}">${numberOfLoans}</a>&nbsp;次放款,
								第一次放款日期为${firstLoanTime}
							<#else>
								&nbsp;无
							</#if>
						</td>
						
						<td width="15%" align="right" class="bg">发证机构:</td>
                       	<td>${basic.issuingAuthority}</td>
					</tr>
	<!-- 					
 					<tr> 
 						<td align="right" class="bg">婚姻情况:</td> 
 						<td><@select dataSouceType="CRMFAMILYSTATUS" 
 							value="${basic.maritalStatus}" renderonly="true"/></td> 
 	
						<td align="right" class="bg">客户来源:</td>
						<td colspan="3"><@select dataSouceType="CUSTOMERSOURCE"
							value="${basic.customerSource}" renderonly="true"/></td>
	
					</tr>
	-->
	<!--				
					<#if loanapply.loanType!='BP'>
					<tr>
						<td align="right" class="bg">客户SD号:</td>
						<td colspan="3">${loanapply.customerCode}</td>
					</tr>
					</#if>
	-->
					<tr>
						<td width="15%" align="right" class="bg">性别 :</td>
                        <td >${show_sex}</td>

						<td align="right" class="bg">证件到期日:</td>
						<td><#if (basic.licenseExpirationDate)??>
							${basic.licenseExpirationDate?date} </#if></td>
					</tr>
					<tr>
						<td width="15%" align="right" class="bg">年龄:</td>
                        <td><span id="show_age"></span>（岁）</td>
                        <td width="15%" align="right" class="bg">学历:</td>
                        <td>
                        	<@select dataSouceFrom="CRM" dataSouceType="education" value="${basic.education}"  renderonly="true"/>
                        </td>
					</tr>
					<tr>
                    	<td width="15%" align="right" class="bg">婚姻状况:</td>
                        <td>
                        	<label>
                            	<#if "${basic.maritalStatus}" == "1" > 
								未婚   
								<#elseif "${basic.maritalStatus}" == "2"> 
								已婚 
								<#elseif "${basic.maritalStatus}" == "3">
							           离异   
					           <#elseif "${basic.maritalStatus}" == "4">
							          丧偶   
					           <#else>
			    				 未婚   
							   </#if> 
                            </label>
                        </td>
                        
                        <td width="15%" align="right" class="bg">微信号 :</td>
                        <td>
                        <#if type=="detail" || approvalStatus=='UNDO'>
                        	${basic.wechat}
						<#else>
							${basic_sensitive.wechat}
					<@permission permissionName="loanUserLookInfo">
					<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_window?id=${loanUser.id}">查看</a>
					</@permission>
					</#if>
                        </td>
                    </tr>
					<tr>
						<td align="right" class="bg">联系电话:</td>
						<td>
						<#if type=="detail" || approvalStatus=='UNDO'>
							${loanUser.userPhone}
						<#else>
							${loanUser_sensitive.userPhone}
					<@permission permissionName="loanUserLookInfo">
					<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_window?id=${loanUser.id}">查看</a>
					</@permission>
					</#if>
						<input type="hidden"
							value="${loanUser.userPhone}" name="userPhone"></td>
						<td align="right" class="bg">住宅电话:</td>
						<td>
						<#if type=="detail" || approvalStatus=='UNDO'>
							${basic.homePhone}
						<#else>
							${basic_sensitive.homePhone}
					<@permission permissionName="loanUserLookInfo">
					<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_window?id=${loanUser.id}">查看</a>
					</@permission>
					</#if>
						</td>
					</tr>
					<tr>
                    	<td width="15%" align="right" class="bg">单位邮编:</td>
                        <td>${basic.postcode}</td>
                        <td width="15%" align="right" class="bg">
						<span >借款人户口所在地:</span></td></td>
                        <td>
						<@select dataSouceFrom="CRM" dataSouceType="BORROWER_CENSUS_REGISTER" value="${basic.borrowerCensusRegister}"  renderonly="true"/>
                        </td>
                    </tr>
                    <tr>
                        <tr>
							<td width="15%" align="right" class="bg">户籍地址 :</td>
							<td colspan="3">
							<#if type=="detail" || approvalStatus=='UNDO'>
							<span id ="hjdz">
								<@select dataSouceType="province" value="${basic.accountProvince}" renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="city" value="${basic.accountCity}"  renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="COUNTY" value="${basic.accountAounty}"  renderonly="true"/>&nbsp;&nbsp;
	                    		${basic.permanentresidence}&nbsp;&nbsp;
	                    		</span>
	                    		<a href="javascript:void(0);" target="_blank" onclick="hjdzmap(this);">地图中查看</a>
							<#else>
								<@select dataSouceType="province" value="${basic.accountProvince}" renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="city" value="${basic.accountCity}"  renderonly="true"/>&nbsp;&nbsp;
								******
								<@permission permissionName="loanUserLookInfo">
								<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_window?id=${loanUser.id}">查看</a>
								</@permission>
							</#if>
								
							</td>
						</tr>
                        
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">居住地址:</td>
                        <td colspan="3">
                    <#if type=="detail" || approvalStatus=='UNDO'>
						<span id ="jzdz">
                        	<@select dataSouceType="province" value="${basic.recipientProvince}" renderonly="true"/>&nbsp;&nbsp;
							<@select dataSouceType="city" value="${basic.recipientCity}"  renderonly="true"/>&nbsp;&nbsp;
							<@select dataSouceType="COUNTY" value="${basic.recipientCounty}"  renderonly="true"/>&nbsp;&nbsp;
                    		${basic.recipientAddress}&nbsp;&nbsp;
                    	</span>
                    	<a href="javascript:void(0);" target="_blank" onclick="jzdzmap(this);">地图中查看</a>
					<#else>
							<@select dataSouceType="province" value="${basic.recipientProvince}" renderonly="true"/>&nbsp;&nbsp;
							<@select dataSouceType="city" value="${basic.recipientCity}"  renderonly="true"/>&nbsp;&nbsp;
							******
					<@permission permissionName="loanUserLookInfo">
					<a class="action-ajax-btn fr edit btn_blue" href="/loanrest/show_window?id=${loanUser.id}">查看</a>
					</@permission>
					</#if>
					</td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">居住年限	:</td>
                        <td>${basic.liveYears}(年)</td>
                      <#if basic.maritalStatus==2>
					     <td width="15%" align="right" class="bg">结婚日期:</td>
					     <td >
				        
				           ${(basic.marryDate?string("yyyy-MM-dd"))!}					 
				         </td>
			         </#if>
			          <#if basic.maritalStatus==3>
					     <td width="15%" align="right" class="bg">离婚日期:</td>
					     <td >
				        
				           ${(basic.divorceDate?string("yyyy-MM-dd"))!}					 
				         </td>
			         </#if>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">子女情况	:</td>
                        <td colspan="3"><textarea style="width: 350px" name="children_info" disabled="disabled">${basic.childrenInfo} </textarea></td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">其他信息描述	:</td>
                        <td colspan="3"><textarea style="width: 350px" name="other_info_desc" disabled="disabled">${basic.otherInfoDesc} </textarea></td>
                    </tr>
	
	<!--				
					<tr>
						<td align="right" class="bg">银行状态:</td>
						<td><span class=" fs14"><@select
								dataSouceType="BANK_ZX_STATUS" value="${loanUser.bankStatus}"
								renderonly="true"/></span></td>
						<td align="right" class="bg">银行申请编号:</td>
						<td>${loanUser.bankApplyno}</td>
					</tr>
					<tr>
						<td align="right" class="bg">银行预审批额度:</td>
						<td><@numberFormat value="${loanapply.creditline}" /></td>
						<td align="right" class="bg">银行上浮范围:</td>
						<td><@numberFormat value="${loanapply.creditRange}" /></td>
					</tr>
					<tr>
						<td align="right" class="bg">银行签署意见：</td>
						<td colspan="3">${loanUser.notation}</td>
					</tr>
	
					<tr>
						<td align="right" class="bg">客户名称:</td>
						<td colspan="3">${loanapply.customeRname}</td>
					</tr>
					<tr>
						<td align="right" class="bg">收件地址:</td>
						<td colspan="3">${basic.recipientAddress}
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">户口所在地:</td>
						<td colspan="3">${basic.permanentresidence}
						</td>
					</tr>
					<tr>
                        <td align="right" class="bg">
							<span title="借款人户口所在地与经办平台地址的关系"><span class=" wenhaoIco"></span>借款人户口所在地:</span>
						</td>
                        <td colspan="3">
                            <#if "${basic.borrowerCensusRegister}" == "CITY_INTERNAL" >本市内  
							<#elseif "${basic.borrowerCensusRegister}" == "PROVINCE_INTERNAL">本省内
							<#elseif "${basic.borrowerCensusRegister}" == "PROVINCE_EXTERNAL">省外
							<#else>
						    			  
							</#if>
                        </td>
                    </tr>
					
					<tr>
						<td align="right" class="bg">子女情况:</td>
                        <td colspan="3">${basic.childrenInfo}</td>
					</tr>
	-->
				</tbody>
			</table>
		</div>
		
		
 <@js>
	 var document_no = $('#document_no').val();
	 $('#show_age').text(getAge(document_no));
	 //$('#sex').text(getSex(document_no) == 'M'? '男':'女 ');
	 
	 //根据身份证信息获取年龄
	function getSex(UUserCard){
		//获取出生日期
		UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(12, 14);
		//获取性别
		if (parseInt(UUserCard.substr(16, 1)) % 2 == 1) {
			//alert("男");
		  	return 'M';
		} else {
			//alert("女");
			return 'F';
		}
	}
	 
	  function getAge(UUserCard){
		var myDate = new Date();
		var month = myDate.getMonth() + 1;
		var day = myDate.getDate();
		var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
		if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
			age++;
		}
		//alert(age);
		return age;
    }
    
    function hjdzmap(obj){
		var location = $('#hjdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
	
	function jzdzmap(obj){
		var location = $('#jzdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
	
</@js>
<@jsRender/>